package com.micro.ai.agents.entity;

import com.baomidou.mybatisplus.annotation.*;
import io.swagger.v3.oas.annotations.media.Schema;
import lombok.Data;

import java.io.Serializable;
import java.time.LocalDateTime;

/**
 * 智能体配置实体类
 * 
 * @author micro-ai
 * @since 0.0.1
 */
@Data
@TableName("agent_configs")
@Schema(description = "智能体配置信息")
public class AgentConfig implements Serializable {

    private static final long serialVersionUID = 1L;

    @TableId(value = "id", type = IdType.ASSIGN_ID)
    @Schema(description = "配置ID", example = "config_123456789")
    private String id;

    @Schema(description = "租户ID", example = "tenant_001")
    private String tenantId;

    @Schema(description = "智能体ID", example = "agent_123")
    private String agentId;

    @Schema(description = "配置键", example = "max_retries")
    private String configKey;

    @Schema(description = "配置值", example = "3")
    private String configValue;

    @Schema(description = "配置类型", example = "number", allowableValues = {"string", "number", "boolean", "json", "model"})
    private String configType;

    @Schema(description = "描述", example = "最大重试次数")
    private String description;

    @Schema(description = "是否公开", example = "false")
    private Boolean isPublic;

    @TableField(fill = FieldFill.INSERT)
    @Schema(description = "创建时间")
    private LocalDateTime createdAt;

    @TableField(fill = FieldFill.INSERT_UPDATE)
    @Schema(description = "更新时间")
    private LocalDateTime updatedAt;
}

